﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace pipeCore.Pipes.Ports
{
    /// <summary>
    /// The messaged that is received by the pipe
    /// </summary>
    public class OnMessageRecivedEventArg : EventArgs
    {
        /// <summary>
        /// Constratc a new OnMEssageRecivedEvent Arg Object
        /// </summary>
        /// <param name="b">the message </param>

        public OnMessageRecivedEventArg(Byte[] b)
        {
            this.RecivedBytes = b;
        }
        /// <summary>
        /// Constratc a new OnMEssageRecivedEvent Arg Object
        /// </summary>
        /// <param name="p">the message </param>
        /// <param name="p_2">the sender that sent the message</param>
        public OnMessageRecivedEventArg(byte[] p, string p_2)
        {
            // TODO: Complete member initialization
            RecivedBytes = p;
            SenderName = p_2;
        }
        /// <summary>
        /// The recived bytes
        /// </summary>
        public byte[] RecivedBytes { get; set; }
        /// <summary>
        /// the sender port
        /// </summary>
        public String SenderName;
    }
}
